package cs304.p3.library.controller;

import cs304.p3.library.model.CheckOutBookForm;

public class CheckOutBookController extends Controller{
	
	private CheckOutBookForm cobForm = new CheckOutBookForm();
	private ClerkController clerkController;
	
	public CheckOutBookController(ClerkController cc){
		clerkController = cc;
	}
	
	public CheckOutBookForm getCheckOutBookForm(){
		return cobForm;
	}

	@Override
	public void cleanUp() {
		cobForm = new CheckOutBookForm();
	}

	public void performAction() {
		clerkController.getClerk().setCheckOutBook(cobForm.getCallNumber());
		clerkController.updateBookList();
		//Update view
	}

}
